import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '../views/LoginView.vue'
import ZhuView from '../views/ZhuView.vue'
import ShouView from '../views/ShouView.vue'
import UsersView from '../views/UsersView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: LoginView
  },
  {
    path: '/zhu',
    name: 'zhu',
    component: ZhuView
  },
  {
    path: '/shou',
    name: 'shou',
    component: ShouView
  },
  {
    path: '/users',
    name: 'users',
    component: UsersView
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
